package com.xiyu.service.enums.mailbox.mail;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 审批邮件状态
*/
@Getter
@AllArgsConstructor
public enum MailboxMailApproveStatusEnum implements IntArrayValuable {

    /**
    * 待审批
    */
    PENDING_APPROVAL(1, "待审批"),
    /**
    * 通过
    */
    DONE(2, "通过"),
    /**
    * 驳回
    */
    REVERT(3, "驳回");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MailboxMailApproveStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MailboxMailApproveStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
